import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/test',
  name: 'Test',
  component: LAYOUT,
  redirect: '/test/flowChart',
  meta: {
    orderNo: 5000,
    icon: 'ep:brush',
    title: t('routes.demo.test.name'),
  },
  children: [
    {
      path: 'testTable',
      name: 'testTable',
      component: () => import('/@/views/demo/comp/flow-chart/index.vue'),
      meta: {
        title: t('routes.demo.test.table'),
      },
    },
    {
      path: 'testComponent',
      name: 'testComponent',
      component: () => import('/@/views/demo/comp/flow-chart/index.vue'),
      meta: {
        title: t('routes.demo.test.component'),
      },
    },
  ],
};

export default charts;
